package com.jule.teenpatti.game.api.entity;

import com.jule.teenpatti.game.dao.bean.RoomConfigModel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 房间配置信息
 */
@Getter@Setter@ToString
public class RoomConfigEntity{

    public RoomConfigEntity(RoomConfigModel configModel) {
        this.id = configModel.getId();
        this.roomId = configModel.getRoomId();
        this.minJoinTable = configModel.getMinScore4JoinTable();
        this.ante = configModel.getAnte();
        this.firstBetScore = configModel.getFirstBaseBetScore();
        this.maxBetScore = configModel.getMaxBetScore();
        this.serviceCharge = configModel.getServiceChargeRate();
        this.maxRound = configModel.getMaxBlindRound();
        this.tipValue = configModel.getTipValue();
        this.doubleRoles = configModel.getDoubleRoles();
        this.xiQian = configModel.getXiQian();
    }

    /**
     * 房间序列号
     */
    private Integer id;
    /**
     * 房间id
     */
    private String roomId;
    /**
     * 入桌的最小积分
     */
    private Long minJoinTable;
    /**
     * 底注
     */
    private Long ante;
    /**
     * 第一次下注的基础注
     */
    private Long firstBetScore;
    /**
     * 最大下注额度，任何轮次的下注额不能大于此值
     */
    private Long maxBetScore;
    /**
     * 服务费比率
     */
    private Double serviceCharge;
    /**
     * 盲牌最多可以进行的轮次数
     */
    private Integer maxRound;
    /**
     * 荷官打赏数量
     */
    private Integer tipValue;
    /**
     * 加倍规则
     */
    private String doubleRoles;
    /**
     * 喜钱
     */
    private Integer xiQian;
}
